package com.hunan.chinamobile.dao;

import com.hunan.chinamobile.core.MyMapper;
import com.hunan.chinamobile.dto.DeviceDataDTO;
import com.hunan.chinamobile.model.DeviceData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceDataMapper extends MyMapper<DeviceData>{

    List<DeviceData> findVoltageCurve(@Param("deviceId") String deviceId,
                                      @Param("startTime") String startTime,
                                      @Param("endTime") String endTime);

    List<DeviceData> findByDeviceId(@Param("deviceId") String deviceId);

    List<DeviceDataDTO> findList(@Param("deviceId") String deviceId,
                                 @Param("bsId") String bsId,
                                 @Param("cityId") String cityId,
                                 @Param("type") Integer type,
                                 @Param("startDate")String startDate,
                                 @Param("endDate")String endDate);
}